const express = require('express')
const app = express()
app.use(express.urlencoded({ extended: false }))
app.use(express.json())

app.post('/user', (req, res) => {
    console.log(req.body)
    res.send(`<h1>用户名：${req.body.username}，密码：${req.body.password}</h1>`)
})

app.listen(3000, () => {
    console.log('running at http://127.0.0.1/user')
})



